// 忽略规则类型定义
export interface IgnoreRule {
  id: number
  ignore_type: string
  ignore_val: string
  enabled: boolean
  statusLoading?: boolean  // 前端用于控制加载状态
}

export interface InsertIgnoreRuleRequest {
  ignore_type: string
  ignore_val: string
  enabled: boolean
}

export interface UpdateIgnoreRuleRequest {
  id: number
  ignore_type: string
  ignore_val: string
  enabled: boolean
}

export interface DeleteIgnoreRuleRequest {
  id: number
}

export interface ApiResponse<T = any> {
  code?: number
  message?: string
  data?: T
}

export interface QueryAccountInfoResponse {
  update_ignore_rule_request: IgnoreRule[]
}
